//
//  SXDetailController.swift
//  sina
//
//  Created by shengxinwei on 16/5/19.
//  Copyright © 2016年 shengxinwei. All rights reserved.
//

import UIKit

class SXDetailController: UIViewController {
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        view.backgroundColor = UIColor.whiteColor()
        

        
        let nextItem = UIBarButtonItem(title: "next", style: .Plain, target: self, action: #selector(next))
        
        self.navigationItem.rightBarButtonItem = nextItem
        
    }
    
    @objc private func next() {
        navigationController?.pushViewController(SXDetailController(), animated: true)
    }
    

}
